import request from '@/utils/request'

//查询菜单列表
export function listNumber(query) {
  return request({
    url: '/zxm/application/search/number',
    method: 'get',
    params: query
   })

  }
  //查询通讯录
export function getUser(query) {
  return request({
    url: '/zxm/application/communication',
    method: 'get',
    params: query
  })

}

//查询反馈
export function getBack(query) {
  return request({
    url: '/system/feedback/list',
    method: 'get',
    params: query
  })


}
//获取当前用户的信息
export function getName(query) {
  return request({
    url: '/system/feedback/info',
    method: 'get',
    params: query
  })
}
//提交意见
export function addcommit(id) {
  return request({
    url: '/system/feedback/commit/'+id,

    method: 'get',
  })
}


//新增反馈
export function addBack(data) {
  return request({
    url: '/system/feedback/add',
    method: 'post',
    data: data
  })
}

// 删除反馈
export function delBack(ids) {
  return request({
    url: '/system/feedback/delete/' + ids,
    method: 'delete'
  })
}

//跳转外部链接
export function getEmail() {
  return request({
    url: '/coreMail/mail',
    method: 'get',
  })
}

// export function getUserProfile() {
//   return request({
//     url: '/system/user/profile',
//     method: 'get'
//   })
// }
